package com.eco.service.impl;

import com.eco.dao.ds3.UserMapper;
import com.eco.entity.User;
import com.eco.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
/* loaded from: newfishway-1.0.0-SNAPSHOT.jar:BOOT-INF/classes/com/eco/service/impl/UserServiceImpl.class */
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override // com.eco.service.UserService
    public int addByUser(User user) {
        return this.userMapper.addByUser(user);
    }

    @Override // com.eco.service.UserService
    public int updateByUser(User user) {
        return this.userMapper.updateByUser(user);
    }

    @Override // com.eco.service.UserService
    public User findByUsernameAndPassword(String usercode, String password) {
        return this.userMapper.findByUsernameAndPassword(usercode, password);
    }

    @Override // com.eco.service.UserService
    public User findByUserIdAndUsername(Integer userId, String username) {
        return this.userMapper.findByUserIdAndUsername(userId, username);
    }

    @Override // com.eco.service.UserService
    public User findByUsername(String usercode) {
        return this.userMapper.findByUsername(usercode);
    }
}